<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
  <script>
    /* 
            对象的字面量
                - 可以直接使用{} 来创建对象
            语法：
                {
                    属性名：属性值，
                    [属性名]：属性值
                }
    */
    let obj = {};
    let y = Symbol();
    obj.name = "孙悟空";
    obj.symcf = "fds";
    obj[y] = 666;
    console.log(obj, obj[y]);
  </script>
</html>
